package com.yin.webmvc;

import lombok.Data;
import org.springframework.lang.Nullable;

import java.util.Map;

@Data
public class ModelAndView {

    private String viewName;
    private Map<String,Object> model;

    public ModelAndView(String viewName, @Nullable Map<String, Object> model) {
    this.viewName = viewName;
    this.model = model;

    }
}
